package com.wuhuahe.learning.lagou.service.code.mapper;

import com.wuhuahe.learning.lagou.service.code.pojo.Code;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CodeMapper {

    public Code selectCodeById(Integer id);

    public List<Code> findByPaging();

    public int insertCode(Code code);

    public Code getLatestCodeByEmail(String email);

    public Code getLatestCodeByEmailAndCode(@Param("email") String email,@Param("code") String code);
}
